package com.elvis.springaopinaction.config;

/**
 * 抽象装饰者：持有对具体构件角色的引用并定义与抽象构件角色一致的接口
 */
public abstract class DecoratorMikeTea implements IMikeTea{

    private IMikeTea mikeTea;

    public DecoratorMikeTea(IMikeTea mikeTea) {
        this.mikeTea = mikeTea;
    }


    public void setIMikeTea(IMikeTea mikeTea){
        this.mikeTea = mikeTea;
    }

    @Override
    public void makeMilkTea(){
        mikeTea.makeMilkTea();
    }

}
